package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.UserDest;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDestMapper {
    int insert(UserDest record);

    List<UserDest> selectAll();

    List<UserDest> selectByUserIdAndDestId(@Param("userId") Long userId, @Param("destId") Long destId);

    void deleteByUserIdAndDestId(@Param("userId") Long userId, @Param("destId") Long destId);

    void deleteIsFavor(@Param("userId") Long userId, @Param("destId")Long destId);
}